package com.nuanshui.heatedloan.baseservice.vo;


import com.nuanshui.framework.lang.DateUtil;
import com.nuanshui.heatedloan.baseservice.model.Article;
import com.nuanshui.heatedloan.dal.vo.AdvertisementVO;

import java.util.List;

public class ArticleVO extends Article {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3030754738435966517L;
	
	private List<MediaVO> imageList;
	private List<MediaVO> textList;
	private List<MediaVO> medias;
	private AdvertisementVO firstImg;
	private List<AdvertisementVO> coverList;//顶部的图片

	public String getCatName() {
		return catName;
	}

	public void setCatName(String catName) {
		this.catName = catName;
	}

	private String catName;
	
	
	public AdvertisementVO getFirstImg() {
		return firstImg;
	}

	public void setFirstImg(AdvertisementVO firstImg) {
		this.firstImg = firstImg;
	}

	public List<AdvertisementVO> getCoverList() {
		return coverList;
	}

	public void setCoverList(List<AdvertisementVO> coverList) {
		this.coverList = coverList;
	}

	public List<MediaVO> getMedias() {
		return medias;
	}

	public void setMedias(List<MediaVO> medias) {
		this.medias = medias;
	}

	public List<MediaVO> getImageList() {
		return imageList;
	}

	public void setImageList(List<MediaVO> imageList) {
		this.imageList = imageList;
	}

	public List<MediaVO> getTextList() {
		return textList;
	}

	public void setTextList(List<MediaVO> textList) {
		this.textList = textList;
	}

	public String getEditId(){
		return this.getId();
	}

	public String getCreatedAtStr(){
		return DateUtil.format(this.getCreatedAt(), "yyyy-MM-dd HH:mm:ss");
	}
	
}
